// 获取到浏览器地址栏的searchKey

const key = getUrlParams('key');

$.ajax({
  type: 'get',
  url: 'posts/search/' + key,
  success: function (response) {
    const html = template('searchTpl', {data: response});
    $('#listBox').html(html);
  }
})
